From 9156908a3adc27774c8f1676680375d5edc1b885 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Wed, 20 Jun 2018 20:36:19 +0100 Subject: [PATCH] EmojiCompletion: Avoid un/signed compare warnings (A) Use gsize to match the result of g_variant_n_children (B) Use guint for n_matches, like the struct (and all other n_matches) --- gtk/gtkemojicompletion.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkemojicompletion.c b/gtk/gtkemojicompletion.c index 331809bc91..434047fdaf 100644 --- a/gtk/gtkemojicompletion.c +++ b/gtk/gtkemojicompletion.c @@ -431,7 +431,7 @@ static gboolean has_variations (GVariant *emoji_data) { GVariant *codes; - int i; + gsize i; gboolean has_variations; has_variations = FALSE; @@ -587,8 +587,8 @@ populate_completion (GtkEmojiCompletion *completion, guint offset) { GList *children, *l; - int n_matches; - int n_added; + guint n_matches; + guint n_added; GVariantIter iter; GVariant *item; -- 2.30.2